import './assets/main.css'
import '@renderer/utils/request'
import router from './router/index'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import SvgIcon from './components/SvgIcon.vue'
import { createApp } from 'vue'
import App from './App.vue'

import {createPinia} from 'pinia'
const pinia = createPinia()
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale: zhCn})

import MyInput from './components/MyInput.vue'
app.component('MyInput',MyInput)
import TopNav from './components/TopNav.vue'
app.component('TopNav',TopNav)

import CurrentTime from './components/CurrentTime.vue'
app.component('CurrentTime',CurrentTime)

import GoBack from './components/GoBack.vue'
app.component('GoBack',GoBack)
import UserInfo from './components/UserInfo.vue'
app.component('UserInfo',UserInfo)
//使用全部图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.component('SvgIcon',SvgIcon)

app.mount('#app')
